package com.yaorange.nongjt.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yaorange.common.annotation.Excel;
import com.yaorange.common.core.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 合格证对象 njt_certificate
 *
 * @author hzliu
 * @date 2025-03-02
 */
public class NjtCertificate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 合格证编号 */
    @Excel(name = "合格证编号")
    private String certificateNumber;

    /** 打印次数 */
    @Excel(name = "打印次数")
    private Long printCount;

    /** 扫描次数 */
    @Excel(name = "扫描次数")
    private Long scanCount;

    /** $column.columnComment */
    private Long reportId;

    /** $column.columnComment */
    private Long userId;

    private NjtUserPerfect userPerfect;

    private NjtInspectionReport inspectionReport;

    /** 生产地址 */
    @Excel(name = "生产地址")
    private String productionAddress;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productName;

    /** 重量 */
    @Excel(name = "重量")
    private BigDecimal weight;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 合格方式 */
    @Excel(name = "合格方式")
    private String qualificationMethod;

    /** 检验机构 */
    @Excel(name = "检验机构")
    private String inspectionAgency;

    /** 检查报告 */
    @Excel(name = "检查报告")
    private String inspectionReportUrl;

    /** 开具日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开具日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date issueTime;

    /** 注册手机号 */
    @Excel(name = "注册手机号")
    private String mobilePhone;

    /** 主体名称 */
    @Excel(name = "主体名称")
    private String companyName;

    /** 法人姓名 */
    @Excel(name = "法人姓名")
    private String legalPersonName;

    /** 省 */
    @Excel(name = "省")
    private String province;

    /** 市 */
    @Excel(name = "市")
    private String city;

    /** 区/县 */
    @Excel(name = "区/县")
    private String area;

    /** 乡镇/街道 */
    @Excel(name = "乡镇/街道")
    private String country;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String detailAddress;

    public NjtUserPerfect getUserPerfect() {
        return userPerfect;
    }

    public void setUserPerfect(NjtUserPerfect userPerfect) {
        this.userPerfect = userPerfect;
    }

    public NjtInspectionReport getInspectionReport() {
        return inspectionReport;
    }

    public void setInspectionReport(NjtInspectionReport inspectionReport) {
        this.inspectionReport = inspectionReport;
    }

    public String getMobilePhone() {
        return mobilePhone;
    }

    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getLegalPersonName() {
        return legalPersonName;
    }

    public void setLegalPersonName(String legalPersonName) {
        this.legalPersonName = legalPersonName;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getDetailAddress() {
        return detailAddress;
    }

    public void setDetailAddress(String detailAddress) {
        this.detailAddress = detailAddress;
    }




    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setProductionAddress(String productionAddress)
    {
        this.productionAddress = productionAddress;
    }

    public String getProductionAddress()
    {
        return productionAddress;
    }
    public void setProductName(String productName)
    {
        this.productName = productName;
    }

    public String getProductName()
    {
        return productName;
    }
    public void setWeight(BigDecimal weight)
    {
        this.weight = weight;
    }

    public BigDecimal getWeight()
    {
        return weight;
    }
    public void setUnit(String unit)
    {
        this.unit = unit;
    }

    public String getUnit()
    {
        return unit;
    }
    public void setQualificationMethod(String qualificationMethod)
    {
        this.qualificationMethod = qualificationMethod;
    }

    public String getQualificationMethod()
    {
        return qualificationMethod;
    }
    public void setInspectionAgency(String inspectionAgency)
    {
        this.inspectionAgency = inspectionAgency;
    }

    public String getInspectionAgency()
    {
        return inspectionAgency;
    }
    public void setInspectionReportUrl(String inspectionReportUrl)
    {
        this.inspectionReportUrl = inspectionReportUrl;
    }

    public String getInspectionReportUrl()
    {
        return inspectionReportUrl;
    }
    public void setIssueTime(Date issueTime)
    {
        this.issueTime = issueTime;
    }

    public Date getIssueTime()
    {
        return issueTime;
    }
    public void setReportId(Long reportId)
    {
        this.reportId = reportId;
    }

    public Long getReportId()
    {
        return reportId;
    }



    public void setCertificateNumber(String certificateNumber)
    {
        this.certificateNumber = certificateNumber;
    }

    public String getCertificateNumber()
    {
        return certificateNumber;
    }
    public void setPrintCount(Long printCount)
    {
        this.printCount = printCount;
    }

    public Long getPrintCount()
    {
        return printCount;
    }
    public void setScanCount(Long scanCount)
    {
        this.scanCount = scanCount;
    }

    public Long getScanCount()
    {
        return scanCount;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("searchValue", getSearchValue())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("params", getParams())
                .append("productionAddress", getProductionAddress())
                .append("productName", getProductName())
                .append("weight", getWeight())
                .append("unit", getUnit())
                .append("qualificationMethod", getQualificationMethod())
                .append("inspectionAgency", getInspectionAgency())
                .append("inspectionReportUrl", getInspectionReportUrl())
                .append("issueTime", getIssueTime())
                .append("reportId", getReportId())
                .append("certificateNumber", getCertificateNumber())
                .append("printCount", getPrintCount())
                .append("scanCount", getScanCount())
                .append("userId", getUserId())
                .append("mobilePhone", getMobilePhone())
                .append("companyName", getCompanyName())
                .append("legalPersonName", getLegalPersonName())
                .append("province", getProvince())
                .append("city", getCity())
                .append("area", getArea())
                .append("country", getCountry())
                .append("detailAddress", getDetailAddress())
                .append("mobilePhone", getMobilePhone())
                .toString();
    }
}
